package com.cx.mapper;

import com.cx.pojo.Base;
import com.cx.pojo.BaseExample;
import java.util.List;

import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository// 用于修饰mapper（dao）层的
public interface BaseMapper {
    int countByExample(BaseExample example);

    int deleteByExample(BaseExample example);

    int deleteByPrimaryKey(Integer baseId);

    int insert(Base record);

    int insertSelective(Base record);

    List<Base> selectByExample(BaseExample example);

    Base selectByPrimaryKey(Integer baseId);

    int updateByExampleSelective(@Param("record") Base record, @Param("example") BaseExample example);

    int updateByExample(@Param("record") Base record, @Param("example") BaseExample example);

    int updateByPrimaryKeySelective(Base record);

    int updateByPrimaryKey(Base record);

    //查询所有基本信息
    //分页
    List<Base> selectAllBase(Base base);
}